package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.EquipmentCalibrationProgress;
import com.mxpio.erp.common.equipment.service.EquipmentCalibrationProgressService;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.jpa.query.Operator;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EquipmentCalibrationProgressServiceImpl extends BaseServiceImpl<EquipmentCalibrationProgress> implements EquipmentCalibrationProgressService {

    @Override
    public List<EquipmentCalibrationProgress> selectByMainId(String mainId) {
        Criteria c = Criteria.create().addCriterion("bizNo", Operator.EQ, mainId);
        return list(EquipmentCalibrationProgress.class,c);
    }
}
